﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmallTune.Models
{
    public class Playlist
    {
        public virtual int id { get; set; }
        public virtual IList<Song> listOfSongs { get; set; }
        public virtual string name { get; set; }
        public virtual DateTime lastChanged { get; set; }
        public virtual DateTime created { get; set; }

        public Playlist()
        {
            listOfSongs = new List<Song>();
        }

        public virtual void AddSong(Song song)
        {
            song.listOfPlaylists.Add(this);
            listOfSongs.Add(song);
        }
    }
}
